package com.aaa.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public class EntypeUtil {

    private static String algorithmName="MD5";
    private static int hanshIterations=1024;

    public static String encpassword(String oldPassword,Object salt){
        SimpleHash simpleHash=new SimpleHash(algorithmName,oldPassword,salt,hanshIterations);
        String toBase = simpleHash.toBase64();
        return toBase;
    }

    public static void main(String[] args) {
        String wangwu = encpassword("20190002", "慕容复");
        System.out.println(wangwu);
    }
}
